package com.turing.service.impl;

import com.turing.domain.CategoryThree;
import com.turing.mapper.CategoryThreeMapper;
import com.turing.service.ICategoryThreeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class CategoryThreeServiceImpl implements ICategoryThreeService {

    @Autowired
    private CategoryThreeMapper categoryThreeMapper;

    @Override
    public List<CategoryThree> selectAll() {
        return categoryThreeMapper.selectList();
    }

    @Override
    public CategoryThree selectById(Long id) {
        return categoryThreeMapper.selectByPrimaryKey(id);
    }

    @Override
    public int insertOne(CategoryThree categoryThree) {
        return categoryThreeMapper.insertSelective(categoryThree);
    }

    @Override
    public int updateById(CategoryThree categoryThree) {
        return categoryThreeMapper.updateByPrimaryKeySelective(categoryThree);
    }

    @Override
    public int deleteByIds(Long[] ids) {
        return categoryThreeMapper.deleteByPrimaryKey(ids);
    }

    @Override
    public List<CategoryThree> selectPage(CategoryThree categoryThree) {
        return categoryThreeMapper.selectPage(categoryThree);
    }
}
